<?php

use App\Http\Controllers\Admin\IndexController;
use Illuminate\Support\Facades\Route;
use \App\Http\Controllers\Admin\Dashboard\AnalysisController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::group(['middleware' => [
    'user.login', 'check.auth',
]], function () {
    // 系统主页
    Route::prefix('analysis')->group(function () {
        Route::get('getHeaderData', [AnalysisController::class, 'getHeaderData']);
        Route::get('getPayNumData', [AnalysisController::class, 'getPayNumData']);//获取支付笔数数据
        Route::get('getSaleroomData', [AnalysisController::class, 'getSaleroomData']);//获取销售量数据
        Route::get('getVisitHourData', [AnalysisController::class, 'getVisitHourData']);//获取最近1小时访问情况数据
        Route::get('getWordCloudData', [AnalysisController::class, 'getWordCloudData']);//获取词云数据
    });

});
